using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ImageDisplayable : DisplayableBase
{
    public new Image_ Data;
    public static int CurrentIndex;

    public ImageDisplayable(DataBase data) : base(data)
    {
        Data = data as Image_;
        DrawItem = GameGraphics.Ins.rawImage;

    }
    public override void Draw(int id)
    {
        CurrentIndex++;
        base.Draw(id);
        ((DrawImage)CurrentDrawItem).SetDrawImage(Data);
    }
    public override int GetIndex()
    {
        return CurrentIndex;
    }
    public override void Hide()
    {
        base.Hide();
        CurrentIndex = 0;
    }
}
